<?php
/**
 * Created by PhpStorm.
 * User: liuxiaojie
 * Date: 2019-03-10
 * Time: 22:51
 */

namespace app\ops\controller;

class Verify extends Base

{

    function index()
    {
        $list = db('my_coupon m')
            ->join('coupon c', 'c.coupon_id = m.coupon_id')
            ->join('customer u', 'u.id = m.customer_id')
            ->where([])
            ->field('m.id, c.name, u.nickname, m.status, m.verify_time, m.admin_name')
            ->order('m.verify_time desc, m.id desc')
            ->paginate(10);

        $this->assign('list', $list);
        return $this->fetch();
    }


}